package util;

import javax.sql.DataSource;

import com.mysql.jdbc.jdbc2.optional.MysqlDataSource;

public class Db {
	public static DataSource ds = null;

	static {
		MysqlDataSource mysqlds = new MysqlDataSource();
		mysqlds.setServerName("127.0.0.1");
		mysqlds.setPort(3306);
		mysqlds.setUser("root");
		mysqlds.setPassword("usbw");
		mysqlds.setDatabaseName("hbr");
		mysqlds.setUseUnicode(true);
		mysqlds.setCharacterEncoding("utf-8");
		ds = mysqlds;
	}

	public static void main(String[] args) {
		 
	}
}
